﻿@Html.ValidationSummary(T("Account creation was unsuccessful. Please correct the errors and try again.").ToString()) 
<div class="user-container">

<div class="user-left" style="padding: 10px;">
    <div class="user-agreement-text">
        <iframe src="@Href("~/Media/Default/NineSeas/EULA.html")" style="width: 100%; height: 100%"></iframe>
    </div>
    <div class="user-agreement-check">
        <input type="checkbox" id="checkAgreement" /><label for="checkAgreement" class="forcheckbox">@T("I agree with the above statements")</label>
    </div>
</div>
<div class="user-right">
@using (Html.BeginFormAntiForgeryPost(Href("~/Users/Account/Register?ReturnUrl=/"), FormMethod.Post, new { OnSubmit = "return $('#checkAgreement').is(':checked');" }))
{ 
    <fieldset>
        <legend>@T("Create a New Account")</legend>
        <div>
            <label for="username">@T("Username:")</label>
            @Html.ValidationMessage("username") 
            @Html.TextBox("username") 
        </div>
        <div>
            <label for="email">@T("Email:")</label>
            @Html.ValidationMessage("email") 
            @Html.TextBox("email") 
        </div>
        <div>
            <label for="password">@T("Password:")</label>
            @Html.ValidationMessage("password") 
            @Html.Password("password") 
        </div>
        <div>
            <label for="confirmPassword">@T("Confirm password:")</label>
            @Html.ValidationMessage("confirmPassword") 
            @Html.Password("confirmPassword") 
        </div>
        <div>
            <button class="primaryAction" type="submit">@T("Register")</button>
        </div>
    </fieldset>
} 
    

</div>
<div style="clear: both;"></div>
</div>